package models

import "github.com/goravel/framework/database/orm"

type SysDict struct {
	orm.Model
	Name   string
	Slug   string
	Remark string
	Status int
}

func NewSysDict() *SysDict {
	return &SysDict{}
}

func (SysDict) TableName() string {
	return "sys_dict"
}

type SysDictData struct {
	orm.Model
	DictSlug  string
	Label     string
	Value     string
	OrderNum  int64
	Remark    string
	Status    int
	IsDefault int
}

func NewSysDictData() *SysDictData {
	return &SysDictData{}
}

func (SysDictData) TableName() string {
	return "sys_dict_data"
}
